<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:c="http://java.sun.com/jsp/jstl/core">
<f:view locale="#{localeBean.locale}">
	<h:head>
		<link rel="shortcut icon" href="#{facesContext.externalContext.request.contextPath}/resources/img/favicon.ico"
			type="image/x-icon" />
		<h:outputStylesheet name="style.css" library="css" />
		<title><h:outputText value="#{msgs['title.aplicationTitle']}" /> <ui:insert name="title">
			</ui:insert></title>
	</h:head>
	<h:body>
		<div id="status">
			<div id="backgroundStatus"></div>
			<p:ajaxStatus id="ajaxStatus" onstart="modalShow(document.getElementById('status'));"
				oncomplete="modalHide(document.getElementById('status'));" />
		</div>
		<p:layout fullPage="true">
			<p:layoutUnit id="north" position="north" resizable="false" gutter="0" closable="false" collapsible="false"
				style="background-color: #F4F4F4;">
				<ui:insert name="header">
					<ui:include src="header.xhtml" />
				</ui:insert>
			</p:layoutUnit>
			<p:layoutUnit id="center" position="center" resizable="false" gutter="0" closable="false" collapsible="false"
				style="background-color: #F4F4F4;">
				<ui:insert name="menu">
					<ui:include src="/main/menu.xhtml" />
				</ui:insert>
				<div id="content" class="content">
					<ui:insert name="content">
					</ui:insert>
				</div>
				<p:growl id="messagesBallon" autoUpdate="true" globalOnly="true" />
				<p:messages id="messagesBar" autoUpdate="true" />
			</p:layoutUnit>
			<p:layoutUnit id="south" position="south" resizable="false" gutter="0" closable="false" collapsible="false"
				style="background-color: #F4F4F4;">
				<div class="footer">
					<h:outputText value="#{msgs['title.footer']}" />
				</div>
			</p:layoutUnit>
		</p:layout>
		<ui:insert name="othersContent">
		</ui:insert>
	</h:body>
	<h:outputScript name="util.js" library="js" target="head" />
	<h:outputScript name="locale-primefaces.js" library="js" target="head" />
</f:view>
</html>
